package com.lixinyue.test11;

public interface IShape {
    public abstract void draw();
    default void func(){
        System.out.println("aaaaaaaa");
    }
    public static void func2(){

    }
}
class Rect implements IShape{
    @Override
    public void draw() {
        System.out.println("♦");
    }
}
class Test{
    public static  void drawMap(IShape iShape){
        iShape.draw();
    }
    public static void main(String[] args) {
        IShape iShape=new Rect();
        drawMap(iShape);
    }
}
